package com.ruoyi.roommanagement.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房间管理对象 roommanagement
 * 
 * @author ruoyi
 * @date 2024-10-09
 */
public class Roommanagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房间ID */
    private Long roomId;

    /** 公寓ID */
    @Excel(name = "公寓ID")
    private Long apartmentId;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNumber;

    /** 房间类型 */
    @Excel(name = "房间类型")
    private String roomType;

    /** 面积 */
    @Excel(name = "面积")
    private BigDecimal area;

    /** 租金 */
    @Excel(name = "租金")
    private BigDecimal rent;

    /** 是否可用 */
    @Excel(name = "是否可用")
    private Integer available;

    /** 租户姓名 */
    @Excel(name = "租户姓名")
    private String tenantName;

    /** 租户电话 */
    @Excel(name = "租户电话")
    private String tenantPhone;

    /** 租赁开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaseStart;

    /** 租赁结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaseEnd;

    /** 房间设施 */
    @Excel(name = "房间设施")
    private String amenities;

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setApartmentId(Long apartmentId) 
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId() 
    {
        return apartmentId;
    }
    public void setRoomNumber(String roomNumber) 
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber() 
    {
        return roomNumber;
    }
    public void setRoomType(String roomType) 
    {
        this.roomType = roomType;
    }

    public String getRoomType() 
    {
        return roomType;
    }
    public void setArea(BigDecimal area) 
    {
        this.area = area;
    }

    public BigDecimal getArea() 
    {
        return area;
    }
    public void setRent(BigDecimal rent) 
    {
        this.rent = rent;
    }

    public BigDecimal getRent() 
    {
        return rent;
    }
    public void setAvailable(Integer available) 
    {
        this.available = available;
    }

    public Integer getAvailable() 
    {
        return available;
    }
    public void setTenantName(String tenantName) 
    {
        this.tenantName = tenantName;
    }

    public String getTenantName() 
    {
        return tenantName;
    }
    public void setTenantPhone(String tenantPhone) 
    {
        this.tenantPhone = tenantPhone;
    }

    public String getTenantPhone() 
    {
        return tenantPhone;
    }
    public void setLeaseStart(Date leaseStart) 
    {
        this.leaseStart = leaseStart;
    }

    public Date getLeaseStart() 
    {
        return leaseStart;
    }
    public void setLeaseEnd(Date leaseEnd) 
    {
        this.leaseEnd = leaseEnd;
    }

    public Date getLeaseEnd() 
    {
        return leaseEnd;
    }
    public void setAmenities(String amenities) 
    {
        this.amenities = amenities;
    }

    public String getAmenities() 
    {
        return amenities;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("apartmentId", getApartmentId())
            .append("roomNumber", getRoomNumber())
            .append("roomType", getRoomType())
            .append("area", getArea())
            .append("rent", getRent())
            .append("available", getAvailable())
            .append("tenantName", getTenantName())
            .append("tenantPhone", getTenantPhone())
            .append("leaseStart", getLeaseStart())
            .append("leaseEnd", getLeaseEnd())
            .append("amenities", getAmenities())
            .toString();
    }
}
